/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.schoolnotice.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 校园通知Entity
 * @author zms
 * @version 2018-03-21
 */
public class SchNotice extends DataEntity<SchNotice> {
	
	private static final long serialVersionUID = 1L;
	private String classifyId;		// 通知分类
	private String titleName;		// 标题名称
	private String titleContent;		// ͨ标题内容
	private String sort;		// 置顶值
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间
	
	public SchNotice() {
		super();
	}

	public SchNotice(String id){
		super(id);
	}

	@Length(min=1, max=11, message="通知分类长度必须介于 1 和 11 之间")
	public String getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}
	
	@Length(min=1, max=255, message="标题名称长度必须介于 1 和 255 之间")
	public String getTitleName() {
		return titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	
	@Length(min=1, max=1000, message="ͨ标题内容长度必须介于 1 和 1000 之间")
	public String getTitleContent() {
		return titleContent;
	}

	public void setTitleContent(String titleContent) {
		this.titleContent = titleContent;
	}
	
	@Length(min=1, max=11, message="置顶值长度必须介于 1 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}
		
}